package com.guguskins.back.entity.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @date 2021/5/18 10:09
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LuckDrawBo {

    private Long userId;

    @NotNull(message = "盲盒信息错误")
    private Long boxId;

    /**
     * 0 试转（无效） 1 有效转动
     */
    @NotNull(message = "参数错误")
    @Range(max = 1L, message = "参数错误")
    private Integer type;

    /**
     * 转动次数
     */
    @NotNull(message = "参数错误")
    @Range(min = 1L, max = 100L, message = "参数错误")
    private Integer time;
}
